package com.yl.solution.controller;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.yl.solution.entity.Unresolved_Problem;
import com.yl.solution.model.UPModel;
import com.yl.solution.service.Unresolved_ProblemService;



@Controller
@RequestMapping("/UP")
public class Unresolved_ProblemController {
		private Unresolved_ProblemService service;
		private Unresolved_Problem UP;
		
		@RequestMapping(value="/insertList",method=RequestMethod.GET)
		public String insertList(UPModel UPModel){
			BeanUtils.copyProperties(UPModel, UP);
			service.insertResolved_Problem(UP);
			return "/RP/Login";
			
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		public Unresolved_ProblemService getService() {
			return service;
		}
		public void setService(Unresolved_ProblemService service) {
			this.service = service;
		}
		public Unresolved_Problem getUP() {
			return UP;
		}
		public void setUP(Unresolved_Problem uP) {
			UP = uP;
		}
}
